package org.tc.client.service;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.client.entity.Collections;

import java.util.List;

@RequestMapping("CollectionsService")
public interface CollectionsService {
    @RequestMapping("deleteById")
    int deleteById(@RequestParam("id") Integer id);

    @PostMapping("insert")
    int insert(@RequestBody Collections collections);

    @RequestMapping("selectCollByUserId")
    List<Collections> selectCollByUserId( @RequestParam("userid")Integer userid);

    @PostMapping("updateByPrimaryKey")
    int updateByPrimaryKey(Collections record);
}